class Base:
    def __init__(self):
        print('enter Base')
        super().__init__()
        print('leave Base')


class A(Base):
    def __init__(self):
        print('enter A')
        super().__init__()
        print('leave A')


class B(Base):
    def __init__(self):
        print('enter B')
        super().__init__()
        print('leave B')


class C(A, B):
    def __init__(self):
        print('enter C')
        super().__init__()
        print('leave C')


if __name__ == '__main__':
    c = C()
    print(c.__class__.mro())
